import unittest
import test_suite

class SuiteTestCase(unittest.TestCase):
    def test1(self):
        print('我是1')

    def test2(self):
        print('我是2')


class Suite2TestCase(unittest.TestCase):
    def testa(self):
        print('我是a')

    def testb(self):
        print('我是b')

if __name__ == '__main__':
    suite1 = unittest.TestSuite()
    loader = unittest.TestLoader()
    loader1 = loader.loadTestsFromName('test_suite.SuiteTestCase')
    # loader2 = loader.loadTestsFromTestCase(Suite2TestCase)
    suite1.addTest(loader1)
    runner = unittest.TextTestRunner(verbosity=2)
    runner.run(suite1)
